package com.yunang.oa.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yunang.oa.common.R;
import com.yunang.oa.entity.OaUser;
import com.yunang.oa.mapper.OaUserMapper;
import com.yunang.oa.service.OaUserService;
import com.yunang.oa.vo.OaLogin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils;

import java.util.List;

/**
 * @ProjectName oa
 * @Author EsnCode
 * @date 2021/4/30
 */

@Service
public class OaUserServiceImpl implements OaUserService {

    private final OaUserMapper oaUserMapper;

    @Autowired
    public OaUserServiceImpl(OaUserMapper oaUserMapper) {
        this.oaUserMapper = oaUserMapper;
    }




    @Override
    public List<OaUser> getOaUserList() {

        return oaUserMapper.getOaUserList();
    }

    @Override
    public OaUser getOaUserById(Long id) {

        return oaUserMapper.getOaUserById(id);
    }

    @Override
    public Integer insertOaUser(OaUser user) {

        return oaUserMapper.insertOaUser(user);
    }




    }


